package com.aaa.entity;


import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * 
 * @TableName tb_head_nav
 */
@TableName(value ="tb_head_nav")
@Data
public class TbHeadNav implements Serializable {
    /**
     * 
     */
    @TableId
    private Integer headId;

    /**
     * 
     */
    private String headName;

    /**
     * 
     */
    private String href;

    /**
     * 启用状态 0启用  1未启用
     */
    private String isDisable;

    /**
     * 逻辑删除 0存在 1已删除
     */
    private String isDeleted;

    /**
     * 跳转方式  0新窗口 1同窗口
     */
    private Integer skipWay;

    /**
     * 导航标题顺序
     */
    private Integer sort;

    /**
     * 是否被添加  0被添加  1 没有被添加
     */
    private Integer isAdd;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TbHeadNav other = (TbHeadNav) that;
        return (this.getHeadId() == null ? other.getHeadId() == null : this.getHeadId().equals(other.getHeadId()))
            && (this.getHeadName() == null ? other.getHeadName() == null : this.getHeadName().equals(other.getHeadName()))
            && (this.getHref() == null ? other.getHref() == null : this.getHref().equals(other.getHref()))
            && (this.getIsDisable() == null ? other.getIsDisable() == null : this.getIsDisable().equals(other.getIsDisable()))
            && (this.getIsDeleted() == null ? other.getIsDeleted() == null : this.getIsDeleted().equals(other.getIsDeleted()))
            && (this.getSkipWay() == null ? other.getSkipWay() == null : this.getSkipWay().equals(other.getSkipWay()))
            && (this.getSort() == null ? other.getSort() == null : this.getSort().equals(other.getSort()))
            && (this.getIsAdd() == null ? other.getIsAdd() == null : this.getIsAdd().equals(other.getIsAdd()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getHeadId() == null) ? 0 : getHeadId().hashCode());
        result = prime * result + ((getHeadName() == null) ? 0 : getHeadName().hashCode());
        result = prime * result + ((getHref() == null) ? 0 : getHref().hashCode());
        result = prime * result + ((getIsDisable() == null) ? 0 : getIsDisable().hashCode());
        result = prime * result + ((getIsDeleted() == null) ? 0 : getIsDeleted().hashCode());
        result = prime * result + ((getSkipWay() == null) ? 0 : getSkipWay().hashCode());
        result = prime * result + ((getSort() == null) ? 0 : getSort().hashCode());
        result = prime * result + ((getIsAdd() == null) ? 0 : getIsAdd().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", headId=").append(headId);
        sb.append(", headName=").append(headName);
        sb.append(", href=").append(href);
        sb.append(", isDisable=").append(isDisable);
        sb.append(", isDeleted=").append(isDeleted);
        sb.append(", skipWay=").append(skipWay);
        sb.append(", sort=").append(sort);
        sb.append(", isAdd=").append(isAdd);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}